package com.gxa.zhonglong.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
//import org.springframework.format.annotation.DateTimeFormat;


import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("门店调拨实体")
public class StoreBarter {

  //调拨表
  @ExcelProperty("序号")
  private long storeBarterId;  //调拨单id(序号)
  @ExcelProperty("状态")
  private Integer storeBarterState;  //状态(0默认,1通过,2驳回)
  @ExcelProperty("单据编号")
  private String storeBarterNum;  //单据编号
  @ExcelProperty("创单日期")
  @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
  @DateTimeFormat( "yyyy-MM-dd hh:mm:ss")
  private Date storeBarterCtime;  //创单日期
  @ExcelProperty("出库门店")
  //出库门店柜台
  private String storeBarterOlds;
  @ExcelProperty("出库柜台")
  private String storeBarterOldc;
  @ExcelProperty("入库店铺")
  //入库门店柜台
  private String storeBarterNews;
  @ExcelProperty("入库柜台")
  private String storeBarterNewc;
  @ExcelProperty("商品类型")
  //商品类型
  private String storeBarterGclass;
  @ExcelProperty("数量")
  private Integer storeBarterNumber;  //商品数量
  @ExcelProperty("重量")
  private double storeBarterWeight;   //重量
  @ExcelProperty("成本")
  private double storeBarterCost;   //成本
  @ExcelProperty("系列")
  private Integer storeBarterCoeff;   //系数
  @ExcelProperty("变迁金额")
  private double storeBarterMoney;  //标签金额
  @ExcelProperty("创单人")
  private String storeBarterCusername;  //创单人
  @ExcelProperty("审批人")
  private String storeBarterEusername;   //审批人
  @ExcelProperty("审批时间")
  @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss",timezone = "GMT+8")
  @DateTimeFormat("yyyy-MM-dd hh:mm:ss")
  private Date storeBarterEtime;   //审批日期
  @JsonIgnore
  @ExcelIgnore
  private List goodsCoding;  //这个是装批量数据的,表格里边没有
}
